package main

import (
	"demo/user/controller"
	"github.com/gin-gonic/gin"
)

var r = gin.Default()

func main() {

	r.GET("/queryUser", controller.QueryUser)
	r.GET("/addApi", addApi)
	r.Run()
}

func addApi(c *gin.Context) {
	apiName := c.Query("api")
	r.GET("/"+apiName, controller.QueryUser)
}
